package it.nesimuge.score.gui.gare;

import it.lapomuge.db.dao.DbManager;
import it.lapomuge.db.entity.Giudice;

import java.awt.BorderLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;

public class jDialogGiudici extends JDialog {

	private final JPanel contentPanel = new JPanel();
	private JTable table;
	private JTable table_1;

	/**
	 * Launch the application.
	 */


	/**
	 * Create the dialog.
	 */
	public jDialogGiudici() {
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		GridBagLayout gbl_contentPanel = new GridBagLayout();
		gbl_contentPanel.columnWidths = new int[]{132, 31, 97, 0};
		gbl_contentPanel.rowHeights = new int[]{0, 0, 0, 0, 183, 0};
		gbl_contentPanel.columnWeights = new double[]{1.0, 0.0, 1.0, Double.MIN_VALUE};
		gbl_contentPanel.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 1.0, Double.MIN_VALUE};
		contentPanel.setLayout(gbl_contentPanel);
		{
			JLabel lblMancheNumero = new JLabel("Manche numero:");
			GridBagConstraints gbc_lblMancheNumero = new GridBagConstraints();
			gbc_lblMancheNumero.anchor = GridBagConstraints.WEST;
			gbc_lblMancheNumero.insets = new Insets(0, 0, 5, 5);
			gbc_lblMancheNumero.gridx = 0;
			gbc_lblMancheNumero.gridy = 0;
			contentPanel.add(lblMancheNumero, gbc_lblMancheNumero);
		}
		{
			table = new JTable();
			table.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Giudici partecipanti", TitledBorder.LEADING, TitledBorder.TOP, null, null));
			GridBagConstraints gbc_table = new GridBagConstraints();
			gbc_table.gridheight = 4;
			gbc_table.fill = GridBagConstraints.BOTH;
			gbc_table.insets = new Insets(0, 0, 0, 5);
			gbc_table.gridx = 0;
			gbc_table.gridy = 1;
			contentPanel.add(table, gbc_table);
		}
		{
			JButton btnNewButton = new JButton("<--");
			GridBagConstraints gbc_btnNewButton = new GridBagConstraints();
			gbc_btnNewButton.insets = new Insets(0, 0, 5, 5);
			gbc_btnNewButton.gridx = 1;
			gbc_btnNewButton.gridy = 2;
			contentPanel.add(btnNewButton, gbc_btnNewButton);
		}
		{
			JButton btnNewButton_1 = new JButton("-->");
			GridBagConstraints gbc_btnNewButton_1 = new GridBagConstraints();
			gbc_btnNewButton_1.insets = new Insets(0, 0, 5, 5);
			gbc_btnNewButton_1.gridx = 1;
			gbc_btnNewButton_1.gridy = 3;
			contentPanel.add(btnNewButton_1, gbc_btnNewButton_1);
		}
		{
			JPanel panel = new JPanel();
			GridBagConstraints gbc_panel = new GridBagConstraints();
			gbc_panel.insets = new Insets(0, 0, 0, 5);
			gbc_panel.gridx = 1;
			gbc_panel.gridy = 4;
			contentPanel.add(panel, gbc_panel);
			panel.setLayout(new GridLayout(0, 2, 0, 0));
		}
		{
			table_1 = new JTable();
			table_1.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Lista Giudici", TitledBorder.LEADING, TitledBorder.TOP, null, null));
			GridBagConstraints gbc_table_1 = new GridBagConstraints();
			gbc_table_1.gridheight = 4;
			gbc_table_1.fill = GridBagConstraints.BOTH;
			gbc_table_1.gridx = 2;
			gbc_table_1.gridy = 1;
			contentPanel.add(table_1, gbc_table_1);
		}
		{
			JPanel buttonPane = new JPanel();
			getContentPane().add(buttonPane, BorderLayout.SOUTH);
			buttonPane.setLayout(new GridLayout(0, 2, 0, 0));
			{
				JButton cancelButton = new JButton("Annulla");
				cancelButton.setActionCommand("Cancel");
				buttonPane.add(cancelButton);
			}
			{
				JButton okButton = new JButton("Avanti");
				okButton.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent arg0) {
					}
				});
				okButton.setActionCommand("OK");
				buttonPane.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}
		}
	}
	


}
